<!--
 * @Author: cqg 
 * @Date: 2020-11-12 20:32:13
 * @LastEditors: cqg
 * @LastEditTime: 2020-12-30 10:23:57
 * @Description: file content
-->
// Created by lifei on 2020/7/20--9:24.
<template>
  <basic-container class="box-shadow">
    <dataList
      placeholder="请输入资产名称"
      :pageInfo="pager"
      :listData="tableData"
      :selectData="selectDataArr"
      searchName="keyword"
      @menu-click="handleMenuClick"
      :filterList="filterList"
      :menuList="menuList"
    >
      <el-table
        :data="tableData"
        align="center"
        @selection-change="$event => (selectDataArr = $event)"
        :header-row-style="{ color: 'black' }"
        :row-style="{ height: '44px' }"
      >
        <el-table-column label="资产名称" prop="assetName" align="center" />
        <el-table-column label="资产分类" prop="assetClassification" align="center" :formatter="dictVal_assetClassification" />
        <el-table-column label="使用状况" prop="useStatus" align="center" :formatter="dictVal_useStatusList" />
        <el-table-column label="登记费(元)" prop="registrationFee" align="center" width="100px" />
        <el-table-column label="税费(元)" prop="taxation" align="center" width="100px" />
        <el-table-column label="价值(元)" prop="value" align="center" width="100px" />
        <el-table-column label="建筑/土地面积(m²)" prop="landArea" align="center" />
        <el-table-column label="入库状态" prop="warehousingStatusStr" align="center" />
        <el-table-column label="操作">
          <template slot-scope="scope">
            <el-button
              type="text"
              @click="$router.push({   path: '/asset-management/fixed-warehousing-add',query:{assetFixedWarehousingId:scope.row.assetFixedWarehousingId,tyep:'edit',}
                })"
              v-if="warehousingBut"
            >入库</el-button>
            <el-button
              type="text"
              @click="$router.push({   path: '/asset-management/fixed-warehousing-add',query:{assetFixedWarehousingId:scope.row.assetFixedWarehousingId,type:'preview'}
                })"
            >查看</el-button>
          </template>
        </el-table-column>
      </el-table>
    </dataList>
  </basic-container>
</template>

<script src="./fixed-warehousing-list.js"></script>
<style scoped lang="scss">
@import "./fixed-warehousing-list";
</style>
